import java.awt.Canvas
import java.awt.Color
import java.awt.Graphics
class RawSwingCanvas : Canvas() {
    // class constructor
    init {
        background = Color.GRAY
        setSize(100, 100)
    }

    // paint() method to draw inside the canvas
    override fun paint(g: Graphics) {
        // adding specifications
        g.color = Color.red
        g.fillOval(50, 50, 150, 75)
    }
}